<%@page import="java.nio.file.Files"%>
<%@page import="java.util.Enumeration"%>
<%@page import="com.oreilly.servlet.multipart.DefaultFileRenamePolicy"%>
<%@page import="com.oreilly.servlet.MultipartRequest"%>
<script type="text/javascript" src="../js/member.js"></script><%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script type="text/javascript" src="../js/board.js"></script>
<link rel="stylesheet" href="../board.js" />
</head>
<body>
<h1>게시판 입력결과</h1>
<%
int size=1024*1024*10;
String saveDir="C:/eclipse/JavaWorkspace/1406_web/WebContent/memberPhoto/";
String oriFile="";
String sysFile="";
MultipartRequest multi=null;
try{
	out.print(request);
	multi=new MultipartRequest(request, saveDir, size, "utf-8", new DefaultFileRenamePolicy());
	out.print("<li>아이디:"+multi.getParameter("mid"));
	out.print("<li>성명:"+multi.getParameter("irum"));
	Enumeration files =multi.getFileNames();
	String tempFile=(String)files.nextElement();
	oriFile=multi.getOriginalFileName(tempFile);
	sysFile=multi.getFilesystemName(tempFile);
	
	out.println("oriFile="+oriFile+"<br/>");
	out.println("sysFile="+sysFile+"<br/>");
	
}catch(Exception e){
	out.print(e.toString());
}
%>


<input type="button" value="목록으로" id="btnList" />
</body>
<script type="text/javascript">inputInit();</script>
</html>